import os
# 文件地址
path = "../new"
# 打开文件夹
files = os.listdir(path)
# 判断是有文件后缀.py在files文件夹下
# any()函数 判断当前元素是否在可迭代对象中,如果在则返回True否则False
if any(name.endswith('.py') for name in files):
    print('There be python!')
else:
    print('Sorry, no python.')

s = ('ACME',50,123.45)
print(",".join(str(i) for i in s))

portfolio = [ {'name':'GOOG', 'shares': 50},
{'name':'YHOO', 'shares': 75},
{'name':'AOL', 'shares': 20},
{'name':'SCOX', 'shares': 65} ]

min_shares = min(s['shares'] for s in portfolio)
print(min_shares)